<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)" class="required-validate">
<input type="hidden" id="advancedStatus" name="advancedStatus" value="${condition.advancedStatus!''}"/>
   <div class="pageHeader">
      <div class="searchBar">
      
        <ul class="searchContent">
           <li>
             <label style="width: 120px;"><@label key="andonCode.C,colon">安灯编号:</@label></label>
             <input type="text" class="textInput" name="andonCode" value="${condition.andonCode!''}"/>
           </li>
           <li>
            <label style="width: 120px;"><@label key="andonText.C,colon">安灯描述：</@label></label>
            <input type="text" class="textInput" name="andonText" value="${condition.andonText!''}"/>
           </li>
           <li>

           </li>
         </ul>
         <ul class="searchContent">
           <li>
             <label style="width: 120px;"><@label key="materialText.C,colon">物料描述:</@label></label>
             <input type="text" class="textInput" name="materialText" value="${condition.materialText!''}"/>
           </li>
           <li>
            <label style="width: 120px;"><@label key="materialCode.C,colon">物料编号：</@label></label>
            <input type="text" class="textInput" name="materialCode" value="${condition.materialCode!''}"/>
           </li>
           <li>
            <label style="width: 80px;"><@label key="memo.C,colon">备注：</@label></label>
            <input type="text" class="textInput" name="memo" value="${condition.memo!''}">
           </li>
         </ul>
         <ul class="searchContent">
              <li><label style="width: 120px;"><@label key="andonTypeText.C,colon">物流类别：</@label></label> <select name="andonTypeCode">
              <option value=""><@label key='all.C'>所有</@label></option>
              <#if andonTypes??> 
              <#list andonTypes as andonType>
			 	<option value="${andonType.andonTypeCode!''}" 
			 		<#if condition.andonTypeCode?? && condition.andonTypeCode == andonType.andonTypeCode> 
			 		selected</#if> >${andonType.typeText!''}</option> </#list> </#if>
            </select>   
            </li>  
            <li class="lockFlag">
             <div style="float: left;">
             <label style="width: 120px;"><@label key="status.C,colon">狀態：</@label></label><select name="lockFlag">
               <option value=''><@label key="all.C">所有</@label></option>
               <option value="0"<#if condition.lockFlag?? && condition.lockFlag == 0>selected="selected"</#if>><@label key="enable.C">启用</@label></option>
               <option value="1"<#if condition.lockFlag?? && condition.lockFlag == 1>selected="selected"</#if>><@label key="disable.C">禁用</@label></option>
             </select>
             </div>
            </li>
            <li class="query">
                <div class="buttonActive">
                  <div class="buttonContent">
                      <button type="submit"><@label key="query.B">查询</@label></button>
                  </div>
                </div>
            </li>
         </ul>
      </div>
   </div>
</form>

<div class="pageContent">
<div class="panelBar">
   <ul class="toolBar">
   
     <@buttonRight menuCode="ADDANDONACCOUNT" labelKey="add.B" defalutName="新增">
            <li>
            	<a class="add" target="dialog" mask="true" width="650" height="260" 
            	href="${rc.getContextPath()}/manage/andonAccount/addAndonAccount?navTabId=${navTabId!''}"           	
            	rel="adddefect" >
            		<span><@label key="add.B">新增</@label></span>
            	</a>
            </li>
       </@buttonRight>
      <@buttonRight menuCode="MODIFYANDONACCOUNT" labelKey="edit.B" defalutName="编辑">
            <li>
            	<a class="edit" target="dialog" mask="true" width="650" height="260"  
            	href="${rc.getContextPath()}/manage/andonAccount/modifyAndonAccount?code={andonAccounts}&navTabId=${navTabId!''}" 
            	rel="editdefect" >
            		<span><@label key="edit.B">编辑</@label></span>
            	</a>
            </li>         
      </@buttonRight> 
      <@buttonRight menuCode="VIEWANDONACCOUNT" labelKey="view.B" defalutName="详情">
            <li>
            	<a class="icon" target="dialog" mask="true" width="650" height="350"
            	href="${rc.getContextPath()}/manage/andonAccount/viewAndonAccount?andonCode={andonAccounts}&navTabId=${navTabId!''}" 
            	rel="viewdefect">
            		<span><@label key="view.B">详情</@label></span>
            	</a>
            </li>
         </@buttonRight>
         <@buttonRight menuCode="DELETEANDONACCOUNT" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo"            	
            	postType="string" rel="codes" callback="batchjobAjaxDone"
            	href="${rc.getContextPath()}/manage/andonAccount/deleteAndonAccount?navTabId=${navTabId!''}"
                title="<@label key='confirmDeleteAndonType.M'>确认要删除选择的类型？</@label>">
                <span><@label key="delete.B">删除</@label></span>
            </a>
            </li>
            </@buttonRight>
            
             <@buttonRight menuCode="COPYANDONACCOUNT" labelKey="copy.B" defalutName="复制">
            <li>
            	<a class="add" target="dialog" mask="true" width="650" height="260" 
            	href="${rc.getContextPath()}/manage/andonAccount/copyAndonAccount?andonCode={andonAccounts}&navTabId=${navTabId!''}"           	
            	rel="viewdefect" >
            		<span><@label key="copy.B">复制</@label></span>
            	</a>
            </li>
       </@buttonRight>
       
             <@buttonRight menuCode="DISABLEANDONACCOUNT" labelKey="disable.B" defalutName="禁用">
            <li><a class="delete" target="selectedTodo" 
            href="${rc.getContextPath()}/manage/andonAccount/disableAndonAccount?&navTabId=${navTabId!''}"
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmStatusDisable.M'>确认禁用选择项？</@label>">
                <span><@label key="disable.B">禁用</@label></span>
            </a>
            </li>
            </@buttonRight>
            <@buttonRight menuCode="ENABLEANDONACCOUNT" labelKey="enable.B" defalutName="启用">
            <li><a class="rel" target="selectedTodo" 
            href="${rc.getContextPath()}/manage/andonAccount/enableAndonAccount?&navTabId=${navTabId!''}"
            	postType="string" rel="codes" callback="batchjobAjaxDone"
                title="<@label key='confirmStatusEnable.M'>确认启用选择项？</@label>">
                <span><@label key="enable.B">启用</@label></span>
            </a>
            </li>
            </@buttonRight>
   </ul>
</div>

<table class="table" width="140%" layoutH="190"  style="overflow:scroll;">
 <thead>
            <tr>
                <th width="22"><input type="checkbox" group="codes" class="checkboxCtrl"></th>
                <th width="20"><@label key="serialNumber.C">序号</@label></th>
                <th width="50"><@label key="status.C">状态</@label></th>
                <th width="80"><@label key="andonCode.C">安灯编号</@label></th>
                <th width="80"><@label key="andonText.C">安灯描述</@label></th>                
                <th width="80"><@label key="materialCode.C">物料编号</@label></th>
                <th width="80"><@label key="materialText.C">物料描述</@label></th>
                <th width="80"><@label key="andonTypeText.C">安灯类型描述</@label></th>
                <th width="80"><@label key="memo.C">备注</@label></th>
                <th width="60"><@label key="normalColor.C">正常状态颜色</@label></th>
                <th width="60"><@label key="touchColor.C">触发状态颜色</@label></th>
                <th width="80"><@label key="createUser.C">创建人</@label></th>
                <th width="100"><@label key="createDateTime.C">创建时间</@label></th>
                <th width="80"><@label key="modifyUser.C">修改人</@label></th>
                <th width="100"><@label key="modifyDateTime.C">修改时间</@label></th>
            </tr>
        </thead>
        <tbody>
          <#if page??><#if (page.data?size>0)> <#list page.data as andonAccount>
          <tr target="andonAccounts" rel="${andonAccount.andonCode!''}">       
          <td><input name="codes" value="${andonAccount.andonCode!''}" type="checkbox"></td>
            <td>${page.startRow + andonAccount_index}</td>
            <td><#if (andonAccount.lockFlag == 0)>
                		<@label key="enable.C">启用</@label>
                	<#else>
                		<@label key="disable.C">禁用</@label>
                	</#if></td>
                <td>${andonAccount.andonCode!''}</td>
                <td>${andonAccount.andonText!''}</td>	              	
                <td>${andonAccount.materialCode!''}</td>
                <td>${andonAccount.materialText!''}</td>
                <td>${andonAccount.typeText!''}</td>
                <td>${andonAccount.memo!''}</td>
                
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonAccount.normalColor!''};">
                    </div>
                </td>
                <td>
                    <div style="width: 15px; height: 15px; margin-top:3px;-moz-border-radius: 10px ; 
                    -webkit-border-radius: 10px; border-radius: 10px; background:${andonAccount.touchColor!''};">
                    </div>
                </td>
                <td>${andonAccount.createUser!''}</td>
                <td>${andonAccount.createDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
                <td>${andonAccount.modifyUser!''}</td>
                <td>${andonAccount.modifyDateTime?string("yyyy-MM-dd HH:mm:ss")}</td>
               
            </tr>
            </#list> <#else>
                <tr >
                <td colspan="20"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="20"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>       
</table>
  <#include "/common/panelBar.html">  
 </div>